package com.zdp.io.nio.test1;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

/**
 * @author ZhengDp
 * @Date 2024/2/5 23:04
 * 时间服务器的客户端
 */
public class TimeClient {
    public static void main(String[] args) {
        int port = 8080;
        if(args != null && args.length > 0) {
            port = Integer.parseInt(args[0]);
        }

        new Thread(new TimeClientHandle("127.0.0.1",port), "TimeClient-001")
                .start();

    }
}
